package com.xyz.utils;

import java.util.Map;

public class ThreadLocalUtils {

    static final ThreadLocal<Map> LOCAL = new ThreadLocal<>();

    public static final String ACCOUNT = "ACCOUNT";

    public static void put(Map params){
        LOCAL.set(params);
    }

    public static Object get(String key){
        Map params = LOCAL.get();
        if(params != null && params.containsKey(key)){
            return params.get(key);
        }
        return null;
    }
}
